package businesslogic.course;
import java.rmi.RemoteException;
import java.util.ArrayList;

import businesslogic.approve.ApproveController;
import businesslogicservice.ApproveControllerImpli;
import businesslogicservice.courseblservice.FirChooseBLService;
import po.choosepo.ChooseApproval;
import po.userpo.StuID;
import Enum.ResultMessage;

public class FirChoose implements FirChooseBLService{

	@Override
	public ResultMessage chooseApprove(ArrayList<ChooseApproval> chooseList){
		ApproveControllerImpli approve;
		try {
			approve = new ApproveController();
			approve.sendApproval(chooseList);
			return ResultMessage.succeed;
		} catch (RemoteException e) {
			e.printStackTrace();
			return ResultMessage.fail;
		}
	}

}
